magento/magento2#: Replace deprecated addError, addSuccess, addException methods in Magento/Customer/Controller/Account/CreatePost.php#24197
Conversation
…ion methods in Magento_Customer module addError -> addErrorMessage addSuccess -> addSuccessMessage addException -> addExceptionMessage
|
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
…ion methods in Magento_Customer module Fix. Unit tests
dmytro-ch
left a comment
There was a problem hiding this comment.
@atwixfirster , could you please check the failed integration tests.
There is a difference in expected results due to escaped characters after using the new methods.
…ion methods in Magento_Customer module
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
done @dmytro-ch, could you please review? Thank you! |
|
Hi @dmytro-ch, thank you for the review.
|
|
✔️ QA Passed |
There was a problem hiding this comment.
@atwixfirster looks like the simple implementation with just messages became a really complex, could you please clarify why we need to use additional templates for simple messages that can be inlined and used in addSuccessMessage method?
Hi, @sidolov ! I will try to explain on the following example. Preconditions:
Steps to reproduce:
Thank you! |
@sidolov , you can see the same implementations in the
Thank you! |
…ss, addException methods in Magento/Customer/Controller/Account/CreatePost.php #24197
|
Hi @atwixfirster, thank you for your contribution! |


Description (*)
Pull request replaces deprecated
addError,addSuccess,addExceptionmethods inMagento/Customer/Controller/Account/CreatePost.phpofMagento_Customermodule:addError -> addErrorMessage
addSuccess -> addSuccessMessage
addException -> addExceptionMessage
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Thank you!